﻿using System;
using System.Collections;
using UnityEngine;

public class TimeManager : MonoBehaviour {
    public static IEnumerator DelayAction(float delay,Action action)
    {
        yield return new WaitForSeconds(delay);
        action();
    }
    public static IEnumerator EndFrameAction(Action action)
    {
        yield return new WaitForEndOfFrame();
        action();
    }
}
